home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / batcmdr.arc / BATCMDR7.DOC < prev    next >
Text File  |  1988-03-17  |  6KB  |  251 lines

  1.            (Z.COM)      BAT Commander  VII  (Co. 1987)
  2.            (A.COM)
  3.              
  4.  
  5.                         CASTLEsoft Boston
  6.  
  7.     This  program was created 'cause I had dozens of .BAT  files. 
  8.  
  9. As  you may (or not) know, every file NO MATTER HOW SMALL,  takes 
  10.  
  11. 2K  on your disk. I took 35 to 40 bat files (taking 70K-80K)  and 
  12.  
  13. put  them in a SINGLE file less than 1K (still takes up 2K).  The 
  14.  
  15. program  Z.COM takes 19K, so I've save a lot of space.  Now  each 
  16.  
  17. file  added to Z.FLS doesn't take any more disk space as long  as 
  18.  
  19. the  whole  Z.FLS  is  less than 2048 bytes.  It  may  seem  that 
  20.  
  21. execution of your bat files takes longer with Bat Commander.  But 
  22.  
  23. that  is  because  all activity takes  place  with  no  on-screen 
  24.  
  25. display.  If you type Z followed by a non-existing  command,  you 
  26.  
  27. will see how fast it goes through your bat list.
  28.  
  29.     The  syntax 
  30.  
  31. to execute a file is;
  32.  
  33.     C:>z command
  34.  
  35. The  command MUST be at least 2 characters long. I used  EDIT.COM 
  36.  
  37. to create my BAT list Z.FLS. Z.COM looks for Z.FLS on drive C: in 
  38.  
  39. the  root DIR. You may have up to 4 commands in  each  bat  file. 
  40.  
  41. The  commands in the file list must be the regular way  you  type 
  42.  
  43. commands.  Normally  this is lower-case. END must be  caps.  This 
  44.  
  45. also  makes seeing the individual bats easier when  the  commands 
  46.  
  47. are  not  in caps. The first line is the command you  will  enter 
  48.  
  49. after  the  Z.  Lets say you want to change to utility  DIR,  and 
  50.  
  51. list  its  contents. I use D4 directory to show 4  columns  on  a 
  52.  
  53. screen. You may not have d4. It could be SD, SDIR, DD or even use 
  54.  
  55. DIR/W  for a wide DIR. So I'll be adding this to my  file,  after 
  56.  
  57. the  last  END.  'ut' the command I will use  to  call  the  bat. 
  58.  
  59. 'cd\util' to change to UTIL DIR, and 'd4' to list the dir. 
  60.  
  61. END
  62. ut
  63. cd\util
  64. d4
  65. END
  66.  
  67. Make  sure  there are no 'invisible' spaces after  the  'calling' 
  68.  
  69. command  in your file. If you type a command and it says  xx  BAT 
  70.  
  71. not  found, but it shows on the list when you type Z  only,  then 
  72.  
  73. you  have trailing spaces. Find the command and put  your  cursor 
  74.  
  75. after  the last letter. Press  DEL several times and  the  spaces 
  76.  
  77. should be gone.
  78.  
  79.     You  may  also  call  a bat file from a  bat  file  to  chain 
  80.  
  81. commands  when  4 commands aren't enough.   Or  start  a  program 
  82.  
  83. running. In fact, my autoexec.bat calls a bat from Bat Commander. 
  84.  
  85. But do all the calling from 1 bat, not in a series. correct way;
  86.  
  87. END
  88. runcom
  89. z pro
  90. z ws
  91. z comm
  92. z fini
  93. END
  94.  
  95. If you call them this way each Z.COM that is called leaves memory 
  96.  
  97. before the next is called. Otherwise they 'stack up'.
  98.  
  99. You  can't  use bat 'programming' commands. You also  can't  call 
  100.  
  101. FLUSH or anything similar from Bat Commander. It will flush Z.COM 
  102.  
  103. and your computer will hang up. 
  104.  
  105.     I've  added a feature to list your bats. Just type Z with  no 
  106.  
  107. arguments  and  the bats will list. Make the very first  line  in 
  108.  
  109. Z.FLS,  'END' and leave a few spaces after the last END and  then 
  110.  
  111. type,  'end'  (lower-case).  If you look at  the  Z.FLS  included 
  112.  
  113. you'll see how the list and commands work. Z.COM is (as far as  I 
  114.  
  115. know),  bug free. If you have a problem it is likely one  of  two 
  116.  
  117. things.  One, that you have typed a command wrong or wrong  order 
  118.  
  119. in  Z.FLS.  Or  two,  the  program  being  called  interferes  or 
  120.  
  121. interacts with another. 
  122.  
  123.     For some examples of bat commands look at;
  124.  
  125. newbak
  126. fixdisk
  127. sag
  128. dw
  129. aa
  130. mace
  131. solit
  132. rr
  133. pct               in  the  sample  Z.FLS.  
  134.  
  135.  
  136.  
  137.     Z.COM  and Bat Commander are Copywrite by CASTLEsoft Boston. 
  138.  
  139.   Z.COM is written in ZBasic and portions of the code are Copywrite 
  140.  
  141. by Zedcor. 
  142.  
  143.     If you find this program helpful please send $5 to;
  144.  
  145.     CASTLEsoft
  146.  
  147.     3 Draper Castle
  148.  
  149.     Dorchester, Mass. 02122
  150.  
  151.  
  152.  
  153. NOTE; Version 2 (Nov. 2, 1987) 
  154.  
  155.     The  first  version (Oct. 31,1987) had a  goblin  (bug)  that 
  156.  
  157. caused  it to go back to C:\ from your subdirectory,  unless  the 
  158.  
  159. command contained a CD\dirname. If you were in c:\util and got  a 
  160.  
  161. dir  for  B:  you'd be in C:\ when you finished.  This  has  been 
  162.  
  163. rectified.
  164.  
  165.  
  166.  
  167. NOTE; Version 3 (Nov. 8, 1987)
  168.  
  169.     Z.COM is only for hard disks. A.COM is for dual floppies, and 
  170.  
  171. will  work on both. The file A.FLS (instead of Z.FLS) must be  on 
  172.  
  173. drive  A:. If you have a hard drive you can keep A.COM on C:\ and 
  174.  
  175. have several A.FLS on floppies for different applications.
  176.  
  177.  
  178. NOTE; version 4 (IV);(Nov. 27, 1987)
  179.  
  180.     There is a limit of 150 bats if you wish to list them all when
  181.  
  182. just the single letter  (z or a) is pressed. You may have as many 
  183.  
  184. wish otherwise. More than 150 would scroll off the screen. The list
  185.  
  186. now lists down in columns instead of across. The version number will
  187.  
  188. also be shown when Bat Commander is called. And the A: version will
  189.  
  190. be followed by a. (ie; IVa)
  191.  
  192. NOTE;  version 5 (V);(Dec. 3, 1987)
  193.  
  194.     This version adds sorting to your BAT list. '/s' instead of a 
  195.  
  196. bat name will list the bats, sorted.
  197.  
  198. C:>z/s
  199.  
  200.  
  201. NOTE;  version 6 (VI);(Dec. 6, 1987)
  202.  
  203.     Now  you can have more than one BAT list. I've  included  the 
  204.  
  205. file D.FLS as a sample. To list D.FLS
  206.  
  207. C:>z/d
  208.  
  209. sorted D.FLS
  210.  
  211. C:>z/d/s
  212.  
  213. To run a D.FLS bat follow the /d with the BAT name. NO spaces.
  214.  
  215. C:>z/dut
  216.  
  217. This  runs the 'ut' bat that is in D.FLS. If you make  a  mistake 
  218.  
  219. with  the letter after '/' and it isn't your file you will get  a 
  220.  
  221. FILE NOT FOUND ERROR in statement #1.
  222.  
  223. (c)ont  or (s)top.
  224.  
  225. Press 's' to stop. Then type using the correct letter. Right  now 
  226.  
  227. you have Z.FLS and D.FLS (for HD). Any other letter will cause an 
  228.  
  229. error. You may name your .FLS with any letter you wish. Just  use 
  230.  
  231. it instead of 'd'. 
  232.  
  233.     IMPORTANT;  You  cannot  use  's' as in  S.FLS.  The  's'  is 
  234.  
  235. reserved as the 'sort' command for Z.FLS.
  236.  
  237.  
  238. NOTE; version 7 (VII)(Dec. 18,1987)
  239.  
  240. The option to list an individual bat to see it's contents 
  241.  
  242. been added. The /l followed by the batname will list the bat.
  243.  
  244. C:>z/lfixdisk             will list the fixdisk bat
  245.  
  246. C:>z/d/lfixdisk           will list fixdisk in D.FLS
  247.  
  248. I also found that there need NOT be a space when the  Z is followed
  249.  
  250. by the slash mark.
  251.